<html>

<head>
    <title>Bootstrap 实例 - 垂直的胶囊式导航菜单</title>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
        integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
    <link rel="stylesheet" href="/css/font-awesome.min.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/popper.min.js"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    <style>
        .admin-left {
            height: 100%;
            background-color: #428bca;
            min-width: 120px !important;
        }

        .navbar {
            margin-bottom: 0;
        }

        .row {
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">答疑平台</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">消息</a></li>
                    <li class="dropdown" style="display: none;">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                            aria-expanded="false">Dropdown <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Action</a></li>
                            <li><a href="#">Another action</a></li>
                            <li><a href="#">Something else here</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">Separated link</a></li>
                        </ul>
                    </li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2 col-sm-2 col-lg-2 admin-left">
                <div>
                    <img src="/img/logo.jpg" alt="" class="img-circle center-block" style="width: 80px; height: 80px">
                    <span>
                        <div class="text-center">管理员</div>
                        <div class="text-center">（管理员）</div>
                    </span>
                </div>
                <div class="panel-group table-responsive classify" style="margin-top: 10px;" role="tablist">
                    <div class="panel panel-primary leftMenu">
                        <!-- 利用data-target指定要折叠的分组列表 -->
                        <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse"
                            data-target="#collapseListGroup1" role="tab">
                            <h4 class="panel-title">
                                常见问题库
                            </h4>
                        </div>
                    </div>
                    <!--panel end-->
                    <div class="panel panel-primary leftMenu">
                        <!-- 利用data-target指定要折叠的分组列表 -->
                        <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse"
                            data-target="#collapseListGroup1" role="tab">
                            <h4 class="panel-title">
                                学生管理
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup1" class="panel-collapse collapse" role="tabpanel"
                            aria-labelledby="collapseListGroupHeading2">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <a href="">全部班级</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">1821801</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">1821802</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">1821803</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <!-- 利用data-target指定要折叠的分组列表 -->
                        <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse"
                            data-target="#collapseListGroup2" role="tab">
                            <h4 class="panel-title">
                                教师管理
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup2" class="panel-collapse collapse" role="tabpanel"
                            aria-labelledby="collapseListGroupHeading2">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <a href="">全部教师</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">语文</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">数学</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">英语</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">编程</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!--panel end-->
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading2" data-toggle="collapse"
                            data-target="#collapseListGroup3" role="tab">
                            <h4 class="panel-title">
                                人工答疑
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup3" class="panel-collapse collapse" role="tabpanel"
                            aria-labelledby="collapseListGroupHeading3">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <a href="">感悟</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">游记</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">日记</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div style="margin-top: 10px; padding-left:5px;">
                <ol class="breadcrumb">
                    <li><a href="#">学生管理</a></li>
                    <li><a href="#" class="active">1821801</a></li>
                </ol>
            </div>

            <div class="col-md-10 col-sm-10 col-lg-10 admin-right">
                <button class="btn btn-default" type="submit" id="add_stu" style="margin-top: 5px;">新增学生</button>
                <form class="form-inline pull-right">
                    <div class="form-group">
                        <label for="exampleInputName2"></label>
                        <input type="text" class="form-control" id="exampleInputName2" placeholder="姓名">
                    </div>
                    <button type="submit" class="btn btn-default">查找</button>
                </form>
                <table class="table table-bordered">
                    <tr>
                        <th>学号<a href="#"><i class="fa fa-arrow-up"></i></a><a href="#"><i
                                    class="fa fa-arrow-down"></i></a></th>
                        <th>姓名</th>
                        <th>班级</th>
                        <th>提问次数<a href="#"><i class="fa fa-arrow-up"></i></a><a href="#"><i
                                    class="fa fa-arrow-down"></i></a></th>
                        <th>上次登录时间<a href="#"><i class="fa fa-arrow-up"></i></a><a href="#"><i
                                    class="fa fa-arrow-down"></i></a></th>
                        <th>操作</th>
                    </tr>
                    <tr>
                        <td>201820180113</td>
                        <td>蓝旺</td>
                        <td>1821801</td>
                        <td>1</td>
                        <td>2020年10月17日16:18:26</td>
                        <td><a href="#">修改信息</a><a href="#"> 重置密码</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>201820180113</td>
                        <td>蓝旺</td>
                        <td>1</td>
                        <td>2020年10月17日16:18:26</td>
                        <td><a href="#">修改信息</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>201820180113</td>
                        <td>蓝旺</td>
                        <td>1</td>
                        <td>2020年10月17日16:18:26</td>
                        <td><a href="#">修改信息</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>201820180113</td>
                        <td>蓝旺</td>
                        <td>1</td>
                        <td>2020年10月17日16:18:26</td>
                        <td><a href="#">修改信息</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>201820180113</td>
                        <td>蓝旺</td>
                        <td>1</td>
                        <td>2020年10月17日16:18:26</td>
                        <td><a href="#">修改信息</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>201820180113</td>
                        <td>蓝旺</td>
                        <td>1</td>
                        <td>2020年10月17日16:18:26</td>
                        <td><a href="#">修改信息</a><a href="#"> 删除</a></td>
                    </tr>
                </table>
                <nav aria-label="Page navigation">
                    <ul class="pagination pull-right">
                        <li>
                            <a href="#" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                        <li><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li>
                            <a href="#" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel">新增</h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label for="stu_id">学生学号</label>
                            <input type="text" name="stu_id" class="form-control" id="stu_id" placeholder="学生学号">
                        </div>
                        <div class="form-group">
                            <label for="stu_name">学生姓名</label>
                            <input type="text" name="stu_name" class="form-control" id="stu_name" placeholder="学生姓名">
                        </div>
                        <div class="form-group">
                            <label for="stu_class">所在班级</label>
                            <input type="text" name="stu_class" class="form-control" id="txt_departmentlevel"
                                placeholder="所在班级">
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal"><span
                                class="glyphicon glyphicon-remove" aria-hidden="true"></span>关闭</button>
                        <button type="button" id="btn_submit" class="btn btn-primary" data-dismiss="modal"><span
                                class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>保存</button>
                    </div>
                </div>
            </div>
        </div>


    </div>

    <script>
        $(function () {
            $(".panel-heading").click(function (e) {
                /*切换折叠指示图标*/
                $(this).find("span").toggleClass("glyphicon-chevron-down");
                $(this).find("span").toggleClass("glyphicon-chevron-up");
            });
        });
        //注册新增按钮的事件
        $("#add_stu").click(function () {
            $("#myModalLabel").text("新增");
            $('#myModal').modal();
        });
    </script>
</body>

</html>